<ui:component xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:s="http://jboss.com/products/seam/taglib">

	<rich:modalPanel id="selectZonePanel" minWidth="#{width}" minHeight="#{height}" resizeable="true">
		<f:facet name="header">
			<h:outputText value="#{messages['interactiveviewer.select_title']}"/>
		</f:facet>
		
		<f:facet name="controls">
			<h:panelGroup>
				<h:graphicImage value="/img/close.png" styleClass="hidelink"
					id="hideSelectZonePanel" />
				<rich:componentControl for="selectZonePanel" attachTo="hideSelectZonePanel"
					operation="hide" event="onclick" />
			</h:panelGroup>
		</f:facet>
		
		<ui:include src="/zoneselector/zoneSelectorIncl.xhtml">
			<ui:param name="showRightsToolbox" value="true" />
			<ui:param name="showRestrictionsToolbox" value="true" />
			<ui:param name="showResponsibilitiesToolbox" value="true" />
			<ui:param name="showDataToolbox" value="true" />
			<ui:param name="drawParcelLayerOnly" value="#{drawParcelLayerOnly}" />
		</ui:include>
		
		<h:form>
			<div align="center">
				<a4j:commandButton
					value="#{messages['button.ok']}"
					action="#{generalHelper.executeELMethod(selectAction, null)}"
					reRender="#{render}"
					oncomplete="if (#{facesContext.maximumSeverity == null}) #{rich:component('selectZonePanel')}.hide();">
				</a4j:commandButton>
				<h:outputText value="   " />
				<button
					onclick="#{rich:component('selectZonePanel')}.hide();">
					#{messages['button.cancel']}
				</button>
			</div>
		</h:form>
	</rich:modalPanel>

</ui:component>
